<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<script src="resources/js/jquery-2.1.0.js"></script>
<script type="text/javascript">
$(function() {
	alert( $("#msg").val() );
	
	var myIndex = $("#index").val();
	var savePath = $("#savePath").val();
	var saveName = $("#saveName").val();
	
	if( $("#isSuccess") ) {
		$("input[name=path_index_" + myIndex + "]", opener.document).val( location.protocol + "//" + location.host + "/ggongal_admin/resources/images/uploadFiles/" + saveName );
		$("input[name=save_index_" + myIndex + "]", opener.document).val( savePath );
		$("input[name=uploadBtn_index_" + myIndex + "]", opener.document).attr("disabled", true);
		$("input[name=deleteBtn_index_" + myIndex + "]", opener.document).attr("disabled", false);
		self.close();
	} else {
		self.close();
	}
});
</script>

</head>
<body>

<input type="hidden" id="msg" value="${msg }"/>
<input type="hidden" id="isSuccess" value="${isSuccess }"/>
<input type="hidden" id="savePath" value="${savePath }"/>
<input type="hidden" id="saveName" value="${saveName }"/>
<input type="hidden" id="index" value="${index }"/>

</body>
</html>